package com.sina.shop.manage.service.goods;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.goods.GoodsPhoto;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-01-15-14:49
 */
public interface GoodsPhotoManageService extends BaseService {

    GoodsPhoto getGoodsPhotoById(Long id);

    int deleteGoodsPhoto(Long id) throws DataException, UpdateException;

    GoodsPhoto saveGoodsPhoto(GoodsPhoto goodsPhoto) throws CreateException, ResourceExistsException, DataException;

    GoodsPhoto updateGoodsPhoto(GoodsPhoto goodsPhoto) throws UpdateException, DataException;

    List<Map<String, Object>> getGoodsPhotoList(GoodsPhoto goodsPhoto, Long count[]);
}
